Loading
Scriptbox
 VBScript Links 
 About VBscript 
 JavaScript Links 
 About JavaScript 
 Powershell Links 
 PSCRIPT the Script Launcher 
 PowerShell Shortcut Keys 
 About Powershell 
     VBScript
    JavaScript
    Powershell
Disclaimer
Contact
Latest 10 Scripts
Script search
  :: { Category } :: 0-9ABCDEFGHIJKLMNOPQRSTUVWXYZ
         

Search Options:  Change  the  Desktop  Wallpaper  to  One  of  Six  Pre-defined  Selections  

 Content of Change the Desktop Wallpaper to One of Six Pre-defined Selections.vbs
MD5 Hash: 82EA17667A71A9AF9BB8ED5A0A88D672
Const HKEY_CURRENT_USER = &H80000001

strComputer = "."

Set objReg = GetObject("winmgmts:\\" & strComputer & "\root\default:StdRegProv")

intLowNumber = 1
intHighNumber = 6

Randomize

intNumber = Int((intHighNumber - intLowNumber + 1) * Rnd + intLowNumber)

Select Case intNumber
Case 1
strValue = "C:\WINDOWS\System32\Wallpaper1.bmp"
Case 2
strValue = "C:\WINDOWS\System32\Wallpaper2.bmp"
Case 3
strValue = "C:\WINDOWS\System32\Wallpaper3.bmp"
Case 4
strValue = "C:\WINDOWS\System32\Wallpaper4.bmp"
Case 5
strValue = "C:\WINDOWS\System32\Wallpaper5.bmp"
Case 6
strValue = "C:\WINDOWS\System32\Wallpaper6.bmp"
End Select

strKeyPath = "Control Panel\Desktop"
ValueName = "Wallpaper"

objReg.SetStringValue HKEY_USERS, strKeyPath, ValueName, strValue



   © 2008 - 2013 Boris Toll      :: Scripts available: 6.481 ::      :: scriptbox.toll.at ::      :: powered by www.toll.at ::
  Google Entries:n/a
  Yahoo Backlinks:n/a
  Live Backlinks:n/a
  del.icio.us Bookmarks:n/a
  Technorati Links:n/a